package com.order.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.vrsys.domain.MenuGroup;
import com.vrsys.persistence.InitialCatch;

@Component("initialService")
public class InitialService {
    @Autowired
    private InitialCatch initPage;

    private List<MenuGroup> groupList;

    public List<MenuGroup> getGroupList() {
        return groupList == null ? initPage.loadGroup(MenuGroup.class) : groupList;
    }

    public void setGroupList(List<MenuGroup> groupList) {
        this.groupList = groupList;
    }
}
